Repository navigation
fix(service): the request budget counts only what GitHub counts - #3946
Conversation
EvidenceBefore (Prometheus, 2026-11-07, one hour, After (estimate): the budget counts about 2020 - 880 = 1140 requests an hour at the same load, 57% of the budget of 2000. The metric still shows 2020. Rounds that waited can run now, so the request rate can rise until it meets the budget again. A person must measure after the merge and the rollout: Sources (rule of the task, three largest by counted requests): #3672 (an idle repository polls less often): this change does not make it unnecessary. Idle polls were mostly 304 answers, which no longer count, but they still use the Service, the network and the rate-limit headers, and the 200 answers of the row Status Sources of the rule: GitHub docs, "Best practices for using the REST API", "Use conditional requests" (a 304 answer to an authorized conditional request does not count against the primary rate limit); "Rate limits for the REST API" (installation minimum 5,000 an hour). Checks run
|
🤖 I have created a release *beep* *boop* --- ## [0.78.0](v0.77.2...v0.78.0) (2026-11-07) ### Features * **k8s:** add the Crawl4AI token to the cluster secrets ([#3937](#3937)) ([5e6eb59](5e6eb59)) * **research:** list every pin of the project ([#3945](#3945)) ([cb65daa](cb65daa)), closes [#3896](#3896) ### Bug Fixes * **roadmap:** a fix step edits only the paths the plan names ([#3944](#3944)) ([7745fa8](7745fa8)) * **roadmap:** read only the marked code spans of a plan ([#3912](#3912)) ([72c52c6](72c52c6)) * **service:** the request budget counts only what GitHub counts ([#3946](#3946)) ([b3f8793](b3f8793)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The Service request budget counted every request, so it counted the answers with status 304. GitHub does not count a 304 answer against its primary rate limit, and the budget protects that limit. In one hour, 880 of 2020 counted requests were 304 answers. The budget sat at its limit all day and delayed the rounds. A request now gives its place back when its answer is 304. A request with no answer stays in the budget. The metric devops_cli_github_requests_total still counts every request with its status. The alert RoadmapServiceGitHubRequestsHigh leaves out status 304, so it follows the budget. The budget value does not change.
Closes #3939
Change:
openspec/changes/archive/2026-11-07-3939-request-budget-counts-github/Elapsed: 3.83s